import request from '@/utils/request'
// 获取列表数据minefield/delMinefield
export function addMinefield(data) {
  return request({
    url: '/minefield/addMinefield',
    method: 'post',
    data
  })
}
// table列表数据
export function listMinefieldData(data) {
  return request({
    url: '/minefield/listMinefieldData',
    method: 'post',
    data
  })
}
// 修改数据
export function updateMinefield(data) {
  return request({
    url: '/minefield/updateMinefield',
    method: 'post',
    data
  })
}
// 删除数据
export function delMinefield(data) {
  return request({
    url: '/minefield/delMinefield',
    method: 'post',
    data
  })
}
// 获取门槛
export function getThreshold() {
  return request({
    url: '/minefield/getThreshold',
    method: 'post'
  })
}getMinefieldDescribe
// 修改门槛
export function setThreshold(data) {
  return request({
    url: '/minefield/setThreshold',
    method: 'post',
    data
  })
}
// 获取玩法介绍
export function getMinefieldDescribe() {
  return request({
    url: '/minefield/getMinefieldDescribe',
    method: 'post'
  })
}
// 修改玩法介绍
export function setMinefieldDescribe(data) {
  return request({
    url: '/minefield/setMinefieldDescribe',
    method: 'post',
    data
  })
}
// 总开关
export function setStatusAll(data) {
  return request({
    url: '/minefield/setStatusAll',
    method: 'post',
    data
  })
}
// 获取总开关状态
export function getStatusAll() {
  return request({
    url: '/minefield/getStatusAll',
    method: 'post'
  })
}
// 雷场列表开关
export function updateMinefieldStatus(data) {
  return request({
    url: '/minefield/updateMinefieldStatus',
    method: 'post',
    data
  })
}
// 更新雷场轮次设置
export function updateMinefieldRotation(data) {
  return request({
    url: '/minefield/updateMinefieldRotation',
    method: 'post',
    data
  })
}
// 保存雷场轮次设置
export function setMinefieldRotation(data) {
  return request({
    url: '/minefield/setMinefieldRotation',
    method: 'post',
    data
  })
}
// 获取雷场轮次
export function getMinefieldRotation(data) {
  return request({
    url: '/minefield/getMinefieldRotation',
    method: 'post',
    data
  })
}
// 雷区列表
export function listMinefieldDetailsData(data) {
  return request({
    url: '/minefield/listMinefieldDetailsData',
    method: 'post',
    data
  })
}
// 添加雷区
export function addMinefieldDetails(data) {
  return request({
    url: '/minefield/addMinefieldDetails',
    method: 'post',
    data
  })
}
// 添加雷区
export function updateMinefieldDetailsStatus(data) {
  return request({
    url: '/minefield/updateMinefieldDetailsStatus',
    method: 'post',
    data
  })
}
// 修改雷区
export function updateMinefieldDetails(data) {
  return request({
    url: '/minefield/updateMinefieldDetails',
    method: 'post',
    data
  })
}
// 添加雷区
export function addEncourage(data) {
  return request({
    url: '/minefield/addEncourage',
    method: 'post',
    data
  })
}
// 添加雷区
export function getEncourage(data) {
  return request({
    url: '/minefield/getEncourage',
    method: 'post',
    data
  })
}
// 删除雷区
export function delMinefieldDetails(data) {
  return request({
    url: '/minefield/delMinefieldDetails',
    method: 'post',
    data
  })
}
